package com.situ.day8homework4;

public class Gongren extends Ren {
	 String danwei;
	 String gongleng;

	
	
	
	public Gongren() {
		super();
	}

	public Gongren(String danwei, String gongleng) {
		super();
		this.danwei = danwei;
		this.gongleng = gongleng;
	}

	public String getDanwei() {
		return danwei;
	}

	public void setDanwei(String danwei) {
		this.danwei = danwei;
	}

	public String getGongleng() {
		return gongleng;
	}

	public void setGongleng(String gongleng) {
		this.gongleng = gongleng;
	}

	
	@Override
	public void shifan() {
		System.out.println("Gongren.shifan()");
	}

	@Override
	public void shuijiao() {
		System.out.println("Gongren.shuijiao()");
	}

	@Override
	public void gongzuo() {
		System.out.println("Gongren.biancheng()");
	}

	@Override
	public String toString() {
		return "GongRen [name=" + name + ", xingbie=" + xingbie + ", age=" + age + ", guoji=" + guoji + ", danwei=" + danwei + ", gongleng=" + gongleng + "]";
	}
	
}
